/*
 * Copyright (C) 2017 MediaTek Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
 */

/* This file is generated by GenLP_setting.pl v1.5.7 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>

const unsigned int AP_DCM_Golden_Setting_tcl_gs_dpidle_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x0C53A2A0,	0x03000800,	0x03000800,/* CPU_PLLDIV_CFG0 */
	0x0C53A2A4,	0x03000800,	0x03000800,/* CPU_PLLDIV_CFG1 */
	0x0C53A2A8,	0x03000800,	0x03000800,/* CPU_PLLDIV_CFG2 */
	0x0C53A2E0,	0x83000800,	0x83000800,/* BUS_PLLDIV_CFG */
	0x0C53A418,	0x00000001,	0x00000000,/* MCSI_CFG2 */
	0x0C53A440,	0x0000FFFF,	0x0000FFFF,/* MCSIC_DCM0 */
	0x0C53A510,	0x00270000,	0x00270000,/* MP_ADB_DCM_CFG4 */
	0x0C53A518,	0x0000003F,	0x0000003F,/* MP_MISC_DCM_CFG0 */
	0x0C53A5C0,	0x00070100,	0x00070100,/* MCUSYS_DCM_CFG0 */
	0x0C53A900,	0x00000005,	0x00000005,/* EMI_WFIFO */
	0x0C53C880,	0x0001000F,	0x0001000F,/* MP0_DCM_CFG0 */
	0x0C53C89C,	0x00000011,	0x00000011,/* MP0_DCM_CFG7 */
	0x0D0A007C,	0x00000002,	0x00000000,/* dbg_mode */
	0x10001070,	0x40F07FFF,	0x40F00603,/* INFRA_BUS_DCM_CTRL */
	0x10001074,	0xBFFFFFFB,	0xB07F83E3,/* PERI_BUS_DCM_CTRL */
	0x10001078,	0xBFFF01C1,	0x0BE00180,/* MEM_DCM_CTRL */
	0x1000107C,	0x07FF01C1,	0x03E00180,/* DFS_MEM_DCM_CTRL */
	0x100010A0,	0x0000000F,	0x00000000,/* P2P_RX_CLK_ON */
	0x10001F00,	0x10000000,	0x10000000,/* INFRA_MISC */
	0x1000D1EC,	0x007FFFFF,	0x00000000,/* DCM_EN */
	0x1001A208,	0x0000FFFF,	0x00000000,/* DXCC_NEW_HWDCM_CFG */
	0x10212048,	0x00000001,	0x00000001,/* CQ_DMA_G_DMA_0_DCM_EN */
	0x102120C8,	0x00000001,	0x00000001,/* CQ_DMA_G_DMA_1_DCM_EN */
	0x10212148,	0x00000001,	0x00000001,/* CQ_DMA_G_DMA_2_DCM_EN */
	0x10219060,	0xFF000000,	0x00000000,/* EMI_CONM */
	0x10219068,	0xFF000000,	0x00000000,/* EMI_CONN */
	0x10219830,	0x00002000,	0x00000000,/* EMI_THRO_CTRL0 */
	0x10228284,	0x000BFF00,	0x00000000,/* MISC_CG_CTRL0 */
	0x1022828C,	0x07E000C0,	0x01000000,/* MISC_CG_CTRL2 */
	0x102282A8,	0x0C000000,	0x00000000,/* MISC_CTRL3 */
	0x1022A038,	0xC4000007,	0xC0000007,/* DRAMC_PD_CTRL */
	0x1022A03C,	0x80000000,	0x80000000,/* CLKAR */
	0x1022D008,	0xFF000000,	0x00000000,/* CHN_EMI_CONB */
	0x10230284,	0x000BFF00,	0x00000000,/* MISC_CG_CTRL0 */
	0x1023028C,	0x07E000C0,	0x01000000,/* MISC_CG_CTRL2 */
	0x102302A8,	0x0C000000,	0x00000000,/* MISC_CTRL3 */
	0x10232038,	0xC4000007,	0xC0000007,/* DRAMC_PD_CTRL */
	0x1023203C,	0x80000000,	0x80000000,/* CLKAR */
	0x10235008,	0xFF000000,	0x00000000,/* CHN_EMI_CONB */
	0x102380F0,	0x0000FFFF,	0x0000FFFF,/* GCE_CTL_INT0 */
	0x10443008,	0x0007FFFF,	0x0007BFFF,/* SSPM_DCM_CTRL */
	0x11000E00,	0x00FFFFFF,	0x00FFFFFF,/* AP_DMA_MD_INT_EN */
	0x11200700,	0x000F0000,	0x00000000,/* RESREG */
	0x11220000,	0x60000000,	0x60000000,/* AUDIO_TOP_CON0 */
	0x11CE0480,	0x00000007,	0x00000007,/* DCM_ON */
	0x13000010,	0x0003FF7F,	0x0000C03F,/* MFG_DCM_CON_0 */
	0x14000120,	0x3FFFFFFF,	0x00000000,/* MMSYS_HW_DCM_1ST_DIS0 */
	0x14000130,	0x0003FFFF,	0x00000000,/* MMSYS_HW_DCM_2ND_DIS0 */
	0x14002300,	0x000000FE,	0x00000000,/* SMI_DCM */
	0x16000018,	0x00000001,	0x00000000,/* VDEC_DCM_CON */
	0x17000000,	0x10000000,	0x00000000,/* VENCSYS_CG_CON */
	0x17000004,	0x10000000,	0x00000000,/* VENCSYS_CG_SET */
	0x17000008,	0x10000000,	0x10000000,/* VENCSYS_CG_CLR */
	0x17030300,	0x00000001,	0x00000000/* JPGENC_DCM_CTRL */
};

const unsigned int *AP_DCM_Golden_Setting_tcl_gs_dpidle =
		AP_DCM_Golden_Setting_tcl_gs_dpidle_data;

unsigned int AP_DCM_Golden_Setting_tcl_gs_dpidle_len = 162;

const unsigned int AP_DCM_Golden_Setting_tcl_gs_suspend_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x0C53A2A0,	0x03000800,	0x03000800,/* CPU_PLLDIV_CFG0 */
	0x0C53A2A4,	0x03000800,	0x03000800,/* CPU_PLLDIV_CFG1 */
	0x0C53A2A8,	0x03000800,	0x03000800,/* CPU_PLLDIV_CFG2 */
	0x0C53A2E0,	0x83000800,	0x83000800,/* BUS_PLLDIV_CFG */
	0x0C53A418,	0x00000001,	0x00000000,/* MCSI_CFG2 */
	0x0C53A440,	0x0000FFFF,	0x0000FFFF,/* MCSIC_DCM0 */
	0x0C53A510,	0x00270000,	0x00270000,/* MP_ADB_DCM_CFG4 */
	0x0C53A518,	0x0000003F,	0x0000003F,/* MP_MISC_DCM_CFG0 */
	0x0C53A5C0,	0x00070100,	0x00070100,/* MCUSYS_DCM_CFG0 */
	0x0C53A900,	0x00000005,	0x00000005,/* EMI_WFIFO */
	0x0C53C880,	0x0001000F,	0x0001000F,/* MP0_DCM_CFG0 */
	0x0C53C89C,	0x00000011,	0x00000011,/* MP0_DCM_CFG7 */
	0x0D0A007C,	0x00000002,	0x00000000,/* dbg_mode */
	0x10001070,	0x40F07FFF,	0x40F00603,/* INFRA_BUS_DCM_CTRL */
	0x10001074,	0xBFFFFFFB,	0xB07F83E3,/* PERI_BUS_DCM_CTRL */
	0x10001078,	0xBFFF01C1,	0x0BE00180,/* MEM_DCM_CTRL */
	0x1000107C,	0x07FF01C1,	0x03E00180,/* DFS_MEM_DCM_CTRL */
	0x100010A0,	0x0000000F,	0x00000000,/* P2P_RX_CLK_ON */
	0x10001F00,	0x10000000,	0x10000000,/* INFRA_MISC */
	0x1000D1EC,	0x007FFFFF,	0x00000000,/* DCM_EN */
	0x1001A208,	0x0000FFFF,	0x00000000,/* DXCC_NEW_HWDCM_CFG */
	0x10212048,	0x00000001,	0x00000001,/* CQ_DMA_G_DMA_0_DCM_EN */
	0x102120C8,	0x00000001,	0x00000001,/* CQ_DMA_G_DMA_1_DCM_EN */
	0x10212148,	0x00000001,	0x00000001,/* CQ_DMA_G_DMA_2_DCM_EN */
	0x10219060,	0xFF000000,	0x00000000,/* EMI_CONM */
	0x10219068,	0xFF000000,	0x00000000,/* EMI_CONN */
	0x10219830,	0x00002000,	0x00000000,/* EMI_THRO_CTRL0 */
	0x10228284,	0x000BFF00,	0x00000000,/* MISC_CG_CTRL0 */
	0x1022828C,	0x07E000C0,	0x01000000,/* MISC_CG_CTRL2 */
	0x102282A8,	0x0C000000,	0x00000000,/* MISC_CTRL3 */
	0x1022A038,	0xC4000007,	0xC0000007,/* DRAMC_PD_CTRL */
	0x1022A03C,	0x80000000,	0x80000000,/* CLKAR */
	0x1022D008,	0xFF000000,	0x00000000,/* CHN_EMI_CONB */
	0x10230284,	0x000BFF00,	0x00000000,/* MISC_CG_CTRL0 */
	0x1023028C,	0x07E000C0,	0x01000000,/* MISC_CG_CTRL2 */
	0x102302A8,	0x0C000000,	0x00000000,/* MISC_CTRL3 */
	0x10232038,	0xC4000007,	0xC0000007,/* DRAMC_PD_CTRL */
	0x1023203C,	0x80000000,	0x80000000,/* CLKAR */
	0x10235008,	0xFF000000,	0x00000000,/* CHN_EMI_CONB */
	0x102380F0,	0x0000FFFF,	0x0000FFFF,/* GCE_CTL_INT0 */
	0x10443008,	0x0007FFFF,	0x0007BFFF,/* SSPM_DCM_CTRL */
	0x11000E00,	0x00FFFFFF,	0x00FFFFFF,/* AP_DMA_MD_INT_EN */
	0x11200700,	0x000F0000,	0x00000000,/* RESREG */
	0x11220000,	0x60000000,	0x60000000,/* AUDIO_TOP_CON0 */
	0x11CE0480,	0x00000007,	0x00000007,/* DCM_ON */
	0x13000010,	0x0003FF7F,	0x0000C03F,/* MFG_DCM_CON_0 */
	0x14000120,	0x3FFFFFFF,	0x00000000,/* MMSYS_HW_DCM_1ST_DIS0 */
	0x14000130,	0x0003FFFF,	0x00000000,/* MMSYS_HW_DCM_2ND_DIS0 */
	0x14002300,	0x000000FE,	0x00000000,/* SMI_DCM */
	0x16000018,	0x00000001,	0x00000000,/* VDEC_DCM_CON */
	0x17000000,	0x10000000,	0x00000000,/* VENCSYS_CG_CON */
	0x17000004,	0x10000000,	0x00000000,/* VENCSYS_CG_SET */
	0x17000008,	0x10000000,	0x10000000,/* VENCSYS_CG_CLR */
	0x17030300,	0x00000001,	0x00000000 /* JPGENC_DCM_CTRL */
};

const unsigned int *AP_DCM_Golden_Setting_tcl_gs_suspend =
		AP_DCM_Golden_Setting_tcl_gs_suspend_data;

unsigned int AP_DCM_Golden_Setting_tcl_gs_suspend_len = 162;

const unsigned int AP_DCM_Golden_Setting_tcl_gs_sodi_data[] = {
/*      Address     Mask        Golden Setting Value */
	0x1000D1EC,	0x007FFFFF,	0x00000000,/* DCM_EN */
	0x1001A208,	0x0000FFFF,	0x00000000,/* DXCC_NEW_HWDCM_CFG */
	0x10219060,	0xFF000000,	0x00000000,/* EMI_CONM */
	0x10219068,	0xFF000000,	0x00000000,/* EMI_CONN */
	0x10219830,	0x00002000,	0x00000000,/* EMI_THRO_CTRL0 */
	0x10228284,	0x000BFF00,	0x00000000,/* MISC_CG_CTRL0 */
	0x1022828C,	0x07E000C0,	0x01000000,/* MISC_CG_CTRL2 */
	0x102282A8,	0x0C000000,	0x00000000,/* MISC_CTRL3 */
	0x1022D008,	0xFF000000,	0x00000000,/* CHN_EMI_CONB */
	0x10230284,	0x000BFF00,	0x00000000,/* MISC_CG_CTRL0 */
	0x1023028C,	0x07E000C0,	0x01000000,/* MISC_CG_CTRL2 */
	0x102302A8,	0x0C000000,	0x00000000,/* MISC_CTRL3 */
	0x10235008,	0xFF000000,	0x00000000,/* CHN_EMI_CONB */
	0x11CE0480,	0x00000007,	0x00000007,/* DCM_ON */
	0x14000120,	0x3FFFFFFF,	0x00000000,/* MMSYS_HW_DCM_1ST_DIS0 */
	0x14000130,	0x0003FFFF,	0x00000000,/* MMSYS_HW_DCM_2ND_DIS0 */
	0x16000018,	0x00000001,	0x00000000,/* VDEC_DCM_CON */
	0x17000000,	0x10000000,	0x00000000,/* VENCSYS_CG_CON */
	0x17000004,	0x10000000,	0x00000000,/* VENCSYS_CG_SET */
	0x17000008,	0x10000000,	0x10000000,/* VENCSYS_CG_CLR */
	0x17030300,	0x00000001,	0x00000000 /* JPGENC_DCM_CTRL */
};

const unsigned int *AP_DCM_Golden_Setting_tcl_gs_sodi =
		AP_DCM_Golden_Setting_tcl_gs_sodi_data;

unsigned int AP_DCM_Golden_Setting_tcl_gs_sodi_len = 63;
